#pragma once
#ifndef _COUNTDOWN_TOOL_H_
#define _COUNTDOWN_TOOL_H_
#include "../../include/Core/Timer.h"
// 倒计时工具：使用已有的 Timer，按每秒触发一次并打印剩余秒数
class CountdownTool {
public:
    CountdownTool(int seconds = 60);

    void start();

    void on_update(int delta);

    bool is_finished() const;

private:
    Timer timer;
    int remaining;
    bool finished;
};
#endif